package core.bindings;

import core.invernadero.*;
import core.*;

abstract public cclass BasicoBinding extends InvernaderoBasico {
	
    public cclass SensorWrap extends Sensor wraps UsaSensor
	{
		public String idSensor()
		{ 
			return wrappee.getIdSensor();
		}
		
		
	}
	
	public cclass RequestEvento extends Evento wraps AllEvents
	{
		public int duration() 
		{ 
			return 4;
		}
		
		public String idEvent(){
			return "Evento_11";
		}
	}
	
	after (UsaSensor us, AllEvents ae):
		(call(EventInfo collectInfo(AllEvents)) && this(us) && args(ae)) 
	{
		SensorWrap(us).onSensor(RequestEvento(ae));
    }
	
	

}
